import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

/**
 * Created by codeczx on 2018/3/26.
 */
public class Test {
    public static void main(String[] args) {
        GithubServiceImpl  githubService = new GithubServiceImpl();
        githubService.getRepo("czx");
        try {
            Method method = GithubService.class.getDeclaredMethod("getRepo", new Class[]{});
//            System.out.println(method);
//            Annotation[] annotations = method.getAnnotations();
//            System.out.println(annotations.length);
//            for(Annotation annotation:annotations){
//                System.out.println(annotation);
//            }
//            System.out.println(method.getAnnotations());
            System.out.println(method.getParameterAnnotations().length);
//            for(Annotation[] annotations1:method.getParameterAnnotations()){
//                for(Annotation annotation:annotations1){
//                    System.out.println(annotation);
//                }
//            }
//            System.out.println(method.getParameterAnnotations()[0]);
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        }
//        for(Method method:)
    }
}
